
import 'base_filter_option.dart';

class DeptFilterOption extends BaseFilterOption {
  String deptCode;
  String deptName;
  bool isSelected;

  DeptFilterOption({this.deptCode, this.deptName, this.isSelected = false})
      : super(isSelected: isSelected);

  factory DeptFilterOption.fromJson(Map<String, dynamic> json) {
    return DeptFilterOption(
        deptCode: json['typeCode'] ?? '', deptName: json['typeName'] ?? '');
  }

  @override
  getCode() {
    return deptCode;
  }

  @override
  getName() {
    return deptName;
  }
}
